package com.cj;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @author cc
 * @date 2025-05-12 20:15
 **/
@Configuration
public class JavaConfig {

    @Bean
    @Conditional(WindowsCondition.class)
    ShowCmd windowsCmd(){
        return new WindowsShowCmd();
    }


    @Bean
    @Conditional(LinuxCondition.class)
    ShowCmd linuxCmd(){
        return new LinuxShowCmd();
    }
}
